package com.mars.common.utils;

import com.querydsl.core.types.*;
import com.querydsl.core.types.dsl.BooleanExpression;
import com.querydsl.core.types.dsl.NumberExpression;

public class AnyWhereConditionPath extends NumberExpression<Integer> {

	/** 描述 */
	private static final long serialVersionUID = 36387820768423826L;
	private final PathImpl<Integer> pathMixin;
	/**
	 * 条件 1=1
	 */
	public static BooleanExpression anyWherePredicate = new AnyWhereConditionPath().eq(1);
	public static BooleanExpression anyWherePredicate() {
		return new AnyWhereConditionPath().eq(1);
	}
	AnyWhereConditionPath() {
		this(PathMetadataFactory.forVariable("1"));
	}

	AnyWhereConditionPath(PathMetadata metadata) {
		super(ExpressionUtils.path(Integer.class, metadata));
		this.pathMixin = (PathImpl<Integer>) mixin;
	}

	@SuppressWarnings("hiding")
	@Override
	public final <R, C> R accept(Visitor<R, C> v, C context) {
		return v.visit(pathMixin, context);
	}
}
